package com.example.mybackend.service;

import com.example.mybackend.entity.travelogue;
import com.example.mybackend.mapper.travelogueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class travelogueServiceImpl implements travelogueService {
    @Autowired
    private travelogueMapper travelogueMapper;

    @Override
    public List<travelogue> queryAll() {
        return travelogueMapper.queryAll();
    }

    @Override
    public List<travelogue> queryDeleted() {
        return travelogueMapper.queryDeleted();
    }

    @Override
    public List<travelogue> queryStatus0() {
        return travelogueMapper.queryStatus0();
    }

    @Override
    public List<travelogue> queryStatus1() {
        return travelogueMapper.queryStatus1();
    }

    @Override
    public List<travelogue> queryStatus2() {
        return travelogueMapper.queryStatus2();
    }

    @Override
    public Integer Delete(Integer id) {
        return travelogueMapper.Delete(id);
    }

    @Override
    public Integer Recover(Integer id) {
        return travelogueMapper.Recover(id);
    }

    @Override
    public Integer Pass(Integer id) {
        return travelogueMapper.Pass(id);
    }

    @Override
    public Integer Reject(travelogue Travelogue) {
        return travelogueMapper.Reject(Travelogue);
    }

    @Override
    public List<travelogue> queryContentLike(String content) {
        return travelogueMapper.queryContentLike(content);
    }

    @Override
    public List<travelogue> queryUserLike(String username) {
        return travelogueMapper.queryUserLike(username);
    }

}
